// @ts-nocheck
import cornerstoneTools from "cornerstone-tools"

const BaseTool = cornerstoneTools.import('base/BaseTool');

export default class CrossTool extends cornerstoneTools.CrosshairsTool {
  constructor(props = {}) {
    const defaultProps = {
      name: 'Cross',
      defaultStrategy: 'default',
      supportedInteractionTypes: ['Mouse', 'Touch'],
    };
    super(props, defaultProps);
    this.evtCallBack = props.evtCallBack
    this.preMouseDownCallback = this._chooseLocationcallback.bind(this);
    this.mouseDragCallback = this._chooseLocationcallback.bind(this);
    this.touchDragCallback = this._chooseLocationcallback.bind(this);
  }

  _chooseLocationcallback(evt){
    this._chooseLocation(evt)
    this.evtCallBack(evt)
  }
}